from pprint import pprint

output = []
with open("family.txt","rt") as f:
    index = 0
    header_list = []
    for line in f:
        items = line.strip().split(",")
        if index == 0:
            head_list = items
        else:
            output.append(dict(zip(head_list, items)))
        index += 1
pprint(output)